import request from '@/utils/request';
import URLS from './APIUrlDefine';
import { CURRENT_TOKEN } from '@/components/Authorized/renderAuthorize';

/**
 * 上传新的站点图片
 */
export async function CreateNewBanner(data: any) {
    return request(`${URLS.CREAT_NEW_BANNER}`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${CURRENT_TOKEN}`,
        'content-type': 'application/json',
      },
      
      params:{config:data}
    });
  }